<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>看我这个网页好不好看！！！</h1>
    <button onclick="demo()">点击关闭当前浏览器窗口  close</button>
    <script>

        function demo(){
            window.close();
        }


    </script>
</body>
</html>